<?php
class Userimages_Model_Accessleveldecison implements Userimages_Model_Mainable{
    
    public function main(array $variables = null) {
        if(!isset($_SESSION['username']) && !isset($_SESSION['access_level']) && ($_SESSION['access_level'] != 0)){
            session_destroy();
            header("Location: ".SITE_ROOT."login.html");
        }
    }
}
